/* ==========================================
   SISTEMA SOCIAL (CHAT & AMIGOS)
   ========================================== */
#social-fab {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: rgba(6, 9, 19, 0.95);
    border: 2px solid var(--primary-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9000;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    transition: all 0.3s ease;
}

#social-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.5);
}

#social-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-magenta);
    color: white;
    font-family: 'Orbitron';
    font-size: 11px;
    font-weight: 900;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #060913;
    display: none; /* Oculto se for 0 */
}

#social-panel {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 320px;
    height: 480px;
    background: rgba(13, 20, 36, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 15px;
    z-index: 8999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

#social-panel.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.social-header {
    background: rgba(0, 0, 0, 0.4);
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
}

.social-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
}

.social-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-family: 'Orbitron';
    font-size: 11px;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.social-tab.active {
    color: var(--primary-cyan);
    border-bottom: 2px solid var(--primary-cyan);
}

.social-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

/* Itens da Lista de Amigos */
.friend-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    border: 1px solid transparent;
}

.friend-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

.friend-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #444; /* Offline */
}

.status-dot.online {
    background: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green);
}

.friend-name {
    color: white;
    font-weight: bold;
    font-family: 'Rajdhani';
    font-size: 15px;
}

/* Cores dinâmicas para grupos */
.group-tag {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Orbitron';
    margin-left: 5px;
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 40px;
    font-family: 'Orbitron';
}

/* Modais internos do chat (Duelos, Convites) */
.social-popup {
    background: rgba(0, 0, 0, 0.9);
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}